import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Main {
    public static void main1(String[] args) {
        Scanner in=new Scanner(System.in);
        long a=in.nextLong(),b=in.nextLong(),c=in.nextLong();
        if(2*a<b+c&&b<2*a+c&&c<2*a+b){
            System.out.println("Yes");
        }
        else if(2*b<a+c&&a<2*b+c&&c<2*b+a){
            System.out.println("Yes");
        }
        else if(2*c<a+b&&b<2*c+a&&a<2*c+b){
            System.out.println("Yes");
        }
        else{
            System.out.println("No");
        }
    }

    public static void main2(String[] args) {
        Scanner in=new Scanner(System.in);
        int n=in.nextInt();
        int[] arr=new int[n];
        for(int i=0;i<n;i++){
            arr[i]=in.nextInt();
        }
        if(n==1){
            System.out.println(-1);
        }
        else {
            if(n%2==0){
                System.out.println(n/2);
            }
            else {
                System.out.println(n/2+1);
            }
        }
    }
}